<div class="search">
	<form method="get">
	<label>หัวข้อ</label> <input type="text" name="search" value="<?php echo (!empty($_GET['search']))?$_GET['search']:'' ?>" />
	 <input type="submit" value="ค้นหา" />
	</form>
</div>
<ul id="question">
		<? foreach($result as $item): ?>
		<div class="question-title"><?php echo $item['title'] ?></div>
		<li class="question">
			<div class="question-detail">
				<?php echo nl2br($item['detail']) ?><br />
				<?php echo Modules::run('files/information_list_file', $item['id'], TRUE); ?>
				<div class="description">
				<span class="name"><?php echo get_one('concat(firstname,concat(\' \',lastname))','users','id',$item['user_id']) ?></span>  
				<span class="time"><?php echo db_to_th(date('Y-m-d H:i:s',$item['created']),TRUE) ?></span>
				</div>
			</div>
		</li>
		<? endforeach; ?>
</ul>
<?php echo $pagination ?>